package com.lingtianyu.tech.erbaoshen.core.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.cloud.erbaoshen")
@Getter
@Setter
public class ErBaoShenYamlConfig {
    private String scan;
    private ServiceData provider;
    private ServiceData consumer;
    private SerializeData serialize;
    private ClientData client;

    @Getter
    @Setter
    public static class ServiceData {
        private String group;
        private String version;
    }

    @Getter
    @Setter
    public static class SerializeData {
        private String type;
    }

    @Getter
    @Setter
    public static class ClientData {
        private String type;
    }
}
